package day03;

public class Demo01 {
    public static void main(String[] args) {
        int a=5,b=10,c=5;
        boolean b1= a>b || b>c;
        System.out.println(b1);// f +t = t
        System.out.println(a<b||b<c);// t + f =t
        System.out.println(a<=b||b>c);// t + t =t
        System.out.println(a>=b||b<c);// f + f= f

        boolean b2= a<b || --c<b;
        System.out.println(b2);// true
        System.out.println(c);// 5 短路

        System.out.println( !(a>b) );// !false  true
        System.out.println( !(a<=b &&--c < b || b>a));// false


        /*
        boolean b1 = a<=b && b<=c;
        System.out.println(b1);// false
        System.out.println(a>b&&b<c);// false
        System.out.println(a==c&&b>=c);// true
        System.out.println(a<b&&b<c);//false

        boolean b2 = a>b&& c++<b;
        System.out.println(b2);// false
        System.out.println(c);//5 短路

        // && 有false即false ，只有两边同时为true 才为true
     */
    }

}
